/***
 * @Author: 玄绮 shijiahansi@qq.com
 * @Date: 2024-05-25 18:29:13
 * @LastEditors: 玄绮 shijiahansi@qq.com
 * @LastEditTime: 2024-05-25 18:29:16
 * @FilePath: \server\src\tools\tools.h
 * @Description:
 * @
 * @Copyright (c) 2024 by 玄绮, All Rights Reserved.
 */

#if !defined(__TOOLS_H__)
#    define __TOOLS_H__
#    include <string>
#    include <string_view>
#    include <vector>

namespace tools {

    std::vector<std::string_view> split(std::string_view content, std::string_view _split);
    int generateVerificationCode();
    std::string loadfile(std::string filepath);
    bool isMail(std::string text);
    bool sendVerificationCode(std::string to, std::string code);
}  // namespace tools

#endif  // __TOOLS_H__
